import os
import pytest
from config.conf import rp_j_path, rp_h_path

if __name__ == '__main__':
    # '-xs',遇到错误退出
    pytest.main(['--alluredir',rp_j_path,"--clean-alluredir"])
    # os.system(f"allure serve {rp_j_path}")
    os.system(f"allure generate {rp_j_path} -o {rp_h_path} --clean")